<!DOCTYPE html>
<html lang="zh-cmn-Hans">
	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="ie=edge" />
		<title>鹿程智慧油站商户平台</title>
		<meta name="description" content="鹿程科技是提供加油站互联网化零管系统、营销及支付和大数据分析运营服务的行业领先科技公司。鹿程科技充分了解加油站行业的需求和新兴互联网的发展,依靠业内最先进的科技和标准化的运营,持续帮助油站业务发展创造价值。"/>
		<meta name="keywords" content="智慧油站,鹿程,鹿程智慧油站,鹿程智慧油站微信支付,加油站微信支付,加油站营销管理"/>
		<link rel="icon" href="https://static.zhihuiyouzhan.com.cn/static/styles/admin/img/title.ico" type="image/x-icon">
		<link rel="shortcut icon" href="https://static.zhihuiyouzhan.com.cn/static/styles/admin/img/title.ico" type="image/x-icon">
		<!--<link href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">-->
		<link rel="stylesheet" href="../layui/css/layui.css" />
		<link rel="stylesheet" href="../css/style.css" />
	</head>
<body>
	<section class="section-right">
		<!--deer-tit-->
		<div class="deer-tit">
			<h3>系统配置</h3>
			<h4>支付配置</h4>
		</div>
		<!--/deer-tit-->
		<!--deer-content-->
		<div class="deer-content">
			<div class="ware-add">
				<form action="#" class="layui-form ware-add-form">
					<dl>
					    <dt>选择支付方式</dt>
						<dd>
                            <input type="radio" name="system_pay"   value="0" title="微信支付">
                            <div class="layui-unselect layui-form-radio"><i class="layui-anim layui-icon"></i><div>微信支付</div></div>
                    		<input type="radio" name="system_pay"  checked="" value="1" title="通联支付">
                    		<div class="layui-unselect layui-form-radio layui-form-radioed"><i class="layui-anim layui-icon"></i><div>通联支付</div></div>
                    		<input type="radio"  name="system_pay"  value="2" title="智能支付">
                    		<div class="layui-unselect layui-form-radio"><i class="layui-anim layui-icon"></i><div>只能支付</div></div>                    
                    		<p><code>智能支付指顾客加油选择打印发票时会启用微信支付 款项会到对公账户，不需要发票时会启用通联支付 款项无需到对公账户。</code></p>
                		</dd>
				    </dl>
				    <div class="deer-tit sys-center">
						<h3>微信支付</h3>						
					</div>
				    <dl>
					    <dt>商户号</dt>
				        <dd><input type="text"  name="wx_merchantid" placeholder="123" value="1261190801" lay-verify="required"  lay-verType="tips"  autocomplete="on" class="layui-input"></dd>
				    </dl>
				    <dl>
				    	<dt>支付密钥</dt>
			    	    <dd><input type="text" name="wx_paysecret" placeholder="1452458552" value="202Cb962ac59075b964b07152d234b70" lay-verify="required" lay-verType="tips" autocomplete="on" class="layui-input"></dd>
				    </dl>
				    <div class="deer-tit sys-center">
						<h3>通联支付</h3>						
					</div>
				    <dl>
					    <dt>商户号</dt>
				        <dd><input type="text" name="tl_merchantid" placeholder="123" value="1000001" lay-verify="required"  lay-verType="tips" autocomplete="on" class="layui-input"></dd>
				    </dl>
				    <dl>
				    	<dt>支付密钥</dt>
			    	    <dd><input type="text" name="tl_appsecret" placeholder="a4s4a4dfa4df5asf6awf2a2" value="89defae676abd3e3a42b41df17c40096" lay-verify="required" lay-verType="tips" autocomplete="on" class="layui-input"></dd>
				    </dl>
				    <dl>
				    	<dt>APPID</dt>
			    	    <dd><input type="text" name="tl_appid" placeholder="0" value="LC3e3a42b41df17c40096" lay-verify="required" lay-verType="tips" autocomplete="on" class="layui-input"></dd>
				    </dl>
					<button class="submit" lay-submit lay-filter="Submit">提交</button>
				</form>
			</div>
		</div>
		<!--/deer-content-->		
	</section>
<!--js-->
	<aside>
		<script type="text/javascript" src="../layui/layui.js" ></script>
		<script type="text/javascript">
			
			layui.use(['form','jquery'],function(){
				var	form=layui.form;
				var $=layui.jquery;				
				
				//表单提交
				form.on('submit(Submit)', function(data){
					console.log(data.field) //当前容器的全部表单字段，名值对形式：{name: value}
					
					$.ajax({
			            url: '/',
			            data: data.field,
			            type: 'post',
			            datatype: 'json',
			            success: function (res) {
			                if (res.code == 1) {
			                	
			                	layer.msg(res.msg);
			                    return;
			                }
				            }
				        });
					return false; //阻止表单跳转。如果需要表单跳转，去掉这段即可。
				});							
			})
		
			  
		</script>
	</aside>
	<!--/js-->
</body>
</html>